package com.moodbox.server.mood.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("t_mood")
public class Mood implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("text_content")
    private String textContent;

    @TableField("image_url")
    private String imageUrl;

    @TableField("audio_url")
    private String audioUrl;

    @TableField("emotion_tag")
    private String emotionTag;

    @TableField("emotion_intensity")
    private Integer emotionIntensity;

    @TableField("ai_analysis")
    private String aiAnalysis;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    @TableField("deleted")
    private Integer deleted;
} 